<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
    </head>
    <body>
        <!-- 普通字符串-被单引号/双引号声明 -->
        <!-- let name = 'zhangsan' -->
        <!-- let msg = "hello vue3" -->

        <!-- 模块字符串-被反引号声明 -->
        <!-- 优势 -->
        <!-- 可以进行任意换行 -->

        <!-- 可以让${表达式}进行嵌套 -->
        
    </body>
    <script>
        let msg = `<div>
                <h3>特大好消息</h3>
                <p>卖爆了卖爆了</p>
        </div>`
        console.log(msg)
        let name = 'zhangsan'
        let age = 18
        let str = `My name is ${name},I am age = ${age},我 ${age > 18 ? '已成年':'未成年'} `
        console.log(str)
    </script>
</html>